    <link rel="stylesheet" href="/Public/location/Css/wap.rank.css" />
    <style type="text/css">
   /*更新在reset*/
header a{margin:0;}
.channelHeader{overflow:hidden; padding:0;  width:100%;}
.iconback{float:left;}
.iconhome{float:right;}
.iconback, .iconhome{background:none; margin-top:3px; font-size:12px; text-align:center; color:#fff; line-height:40px; width:40px; height:40px;}
.channelHeader2 .iconhome{margin-top:-44px;}
.iconback img, .iconhome img{width:40px; height:40px; font-size:12px; text-align:center; line-height:40px;}
.pageBox .iconback, .pageBox .iconhome{background:none;}
 </style>

        <div class="tabArea  list rankingList rankingList_3">
            <div class="slide-con slide-con2">
                <div class="slide-item list1">

                        <volist name="shelfs" id="shelf" >
                            <div class="hot_sale" id="shelf-<{$shelf.shelf_id}>">
                                <span class="num num1">
                                    <{$key+1}>
                                </span>
                                <a href="<{:C('WAP_SITE')}>/<{$shelf.book_id}>.html">
                                    <p class="title">
                                        <{$shelf.book_name}>
                                    </p>

                                    <p class="author">
                                        作者：<{$shelf.author_name}></p>
                                </a>
                                    <p class="author">
                                        <if condition="$shelf.status eq 'ing'">连载<else />完结</if> | 最近更新：<a style="color:Red;" href="<{:C('WAP_SITE')}>/<{$shelf.book_id}>-<{$shelf.new_article_id}>.html"
                                            target="_blank" title="<{$shelf.new_article_name}>"><{$shelf.new_article_name}>
                                        </a></p>

                                 <p class="author">
                                    上次阅读：<{$shelf.time|date='Y-m-d',###}>
                                </p>
                                <p class="author">
                                    <a href="javascript:delShelf(<{$shelf.shelf_id}>);"><font color="#ff0000">从书架删除</font></a>
                                </p>
                            </div>
                        </volist>





                </div>
            </div>
        </div>
  </div>


<script>
function delShelf(shelf_id = 0){
    if(shelf_id > 0){
        $.ajax({
         type: "POST",
         url: "<{:U('Member/delBookForShelf')}>",
         data: "shelf_id="+shelf_id,
         success: function(msg){
            if(msg == 'success'){
                $('#shelf-'+shelf_id).remove();
              swal({
                   title:"已成功从我的书架移除",
                   text:"",
                   type:"success"
               });
            }else{
              swal({
                   title:"网络不稳定，添加失败！",
                   text:"",
                   type:"error"
               });
            }
         }
      });

    }
}
</script>
